/* eslint-disable comma-spacing */
/* eslint-disable space-before-function-paren */
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
/* eslint-disable key-spacing */
//
import Vue from 'vue'
import Router from 'vue-router'
// import hot from '@/pages/lists/hot'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'current',
  routes: [
    {
      path:"",
      name:"head",
      redirect:'/home'
    },
    {
      path: '/home',
      name: 'home',
      redirect: '/home/hot',
      component: () => import('@/pages/home/home'),
      children: [
        {
          path: 'hot',
          name: 'hot',
          component: () => import('@/pages/lists/hot')
        },
        {
          path: 'hot1',
          name: 'hot1',
          component: () => import('@/pages/lists/hot1')
        },
        {
          path: 'hot2',
          name: 'hot2',
          component: () => import('@/pages/lists/hot2')
        },
        {
          path: 'hot3',
          name: 'hot3',
          component: () => import('@/pages/lists/hot3')
        },
        {
          path: 'hot4',
          name: 'hot4',
          component: () => import('@/pages/lists/hot4')
        },
        {
          path: 'hot5',
          name: 'hot5',
          component: () => import('@/pages/lists/hot5')
        },
        {
          path: 'hot6',
          name: 'hot6',
          component: () => import('@/pages/lists/hot6')
        },
        {
          path: 'hot7',
          name: 'hot7',
          component: () => import('@/pages/lists/hot7')
        },
        {
          path: 'hot8',
          name: 'hot8',
          component: () => import('@/pages/lists/hot8')
        },
        {
          path: 'hot9',
          name: 'hot9',
          component: () => import('@/pages/lists/hot9')
        },
        {
          path: 'hot10',
          name: 'hot10',
          component: () => import('@/pages/lists/hot10')
        },
        {
          path: 'hot11',
          name: 'hot11',
          component: () => import('@/pages/lists/hot11')
        },
        {
          path: 'hot12',
          name: 'hot12',
          component: () => import('@/pages/lists/hot12')
        },
        {
          path: 'hot13',
          name: 'hot13',
          component: () => import('@/pages/lists/hot13')
        }
      ]
    },
    {
      path: '/jobdetail',
      name: 'JobDetail',
      component: () => import('@/pages/jobdetail/JobDetail')
    },
    {
      path: '/loged',
      name: 'loged',
      component: () => import('@/pages/loged/logined'),
      redirect: 'loged/myInfomation',
      children: [
        {
          path: 'myFavourite',
          name: 'myFavourite',
          component: () => import('@/pages/loged/components/favourite'),
        },
        {
          path:'myInfomation',
          name:'myInfomation',
          component:() => import('@/pages/loged/components/myInfomation'),
        },
        {
          path:'myCommen',
          name:'myComment',
          component:() => import('@/pages/loged/components/myCommen'),
        },
        {
          path:'myFans',
          name:'myFans',
          component:() => import('@/pages/loged/components/myFans'),
        },
        {
          path:'myFocus',
          name:'myFocus',
          component:() => import('@/pages/loged/components/myFocus'),
        },
        {
          path:'myRelease',
          name:'myRelease',
          component:() => import('@/pages/loged/components/myRelease'),
        },
      ]
    },
    {
      path: '/cir',
      name: 'Cir',
      component: () => import('@/pages/cir/Cir'),
      redirect: '/cir/hots',
      children: [
        {
          path: 'hots',
          name: 'hots',
          component: () => import('@/pages/cir/components/hots')
        },
        {
          path: 'dts',
          name: 'dts',
          component: () => import('@/pages/cir/components/dts')
        },
        {
          path: 'hds',
          name: 'hds',
          component: () => import('@/pages/cir/components/hds')
        },
        {
          path: 'with',
          name: 'with',
          component: () => import('@/pages/cir/components/with')
        }
      ]
    },
    {
      path: '/test',
      name: 'Test',
      component: () => import('@/pages/test/Test')
    },
    {
      path: '/findpass',
      name: 'findpass',
      component: () => import('@/pages/findpass/Findpass')
    },
    {
      path: '/findpass/two',
      name: 'findpassTwo',
      component: () => import('@/pages/findpass/components/FindTwo')
    },
    {
      path: '/findpass/end',
      name: 'findpassEnd',
      component: () => import('@/pages/findpass/components/FindEnd')
    },
    {
      path: '/*',
      name: 'all',
      redirect: '/hot'
    }
  ],
  scrollBehavior(to, from,savedPosition) {
    return {
      x: 0,
      y: 0
    }
  },
})
